package com.novel.download.controller.resp;

import lombok.Data;

@Data
public class SearchResp implements H5Interface {

    /**
     * 书名
     */
    private String bookName;

    private String bookUrl;

    /**
     * 最新章节
     */
    private String newNode;

    /**
     * 最新章节地址
     */
    private String newNodeUrl;

    private String author;

    private String bookSize;

    private String updateTime;

    private String status;

    private String net;

    @Override
    public String toH5String() {
        return "书名：\t" + "<a href=\"/novel/catalogue?net=" + net + "&url=" + bookUrl + "\">" +
                bookName + "</a>" + "<br>" + "最新章节：\t" + newNode + "<br>" +
                "最近更新时间：\t" + updateTime + "<br>" +
                "作者：\t" + author + "<br>";
    }
}
